<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form id="person_add_form">
<div class="form-group">
    <div class="form-group">
        <label for="firstname" class="col-sm-2 control-label">名字</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="firstname" name="pname" placeholder="请输入名字">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">角色</label>
        <div class="col-sm-10">
        <span th:each="role : ${list}">
            <input type="checkbox" name="rid" th:value="${role.roleId}">[[${role.roleName}]]
        </span>
        </div>
    </div>
</div>
</form>
</body>
</html>